package com.atguigu.gmall.item.vo;

import com.atguigu.gmall.pms.entity.CategoryEntity;
import com.atguigu.gmall.pms.entity.SkuImagesEntity;
import com.atguigu.gmall.pms.vo.ItemGroupVo;
import com.atguigu.gmall.pms.vo.SaleAttrValueVo;
import com.atguigu.gmall.sms.vo.ItemSaleVo;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Data
public class ItemVo {
    //面包屑
    //三级分类：id name
    private List<CategoryEntity> categories;
    //品牌信息
    private Long brandId;
    private String brandName;
    //spu信息
    private Long spuId;
    private String spuName;

    //基本信息
    //sku相关信息
    private Long skuId;
    private String title;
    private String subtitle;
    private BigDecimal price;
    private Integer weight;
    private String defaultImage;
    //sku图片列表
    private List<SkuImagesEntity> images;
    //营销信息
    private List<ItemSaleVo> sales;
    //是否有货
    private Boolean store = false;
    //spu下所有sku销售属性
    private List<SaleAttrValueVo> saleAttrs;
    //当前sku的销售属性
    private Map<Long,String> saleAttr;
    //销售属性组合与skuId的映射关系
    private String skuJsons;
    //spu的图片列表
    private List<String> spuImages;
    //规格参数分组
    private List<ItemGroupVo> groups;
}
